/* 页面整体样式 */
.address-page {
    min-height: calc(100vh - 50px);
    background-color: #f5f5f7;

    padding-bottom: 80px;
    /* 给底部按钮留空间 */
}



/* 1. 顶部导航栏 */
.address-header {
    font-size: 18px;
    font-weight: 700;
    background: #fff;
    text-align: left;
    padding: 10px 20px;
}

.back-btn {
    background-color: transparent !important;
    color: #1d2129 !important;
    padding: 6px !important;
    margin-right: 12px;
}

.page-title {
    font-size: 18px;
    font-weight: 500;
    color: #1d2129;
    margin: 0;
    flex: 1;
    text-align: center;
}

.placeholder-btn {
    width: 36px;
    /* 与返回按钮宽度一致，保持标题居中 */
}

/* 2. 地址列表 */
.address-list {
    padding: 12px;
}

/* 地址卡片 */
.address-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    /* 淡阴影，与订单页一致 */
}

/* 地址头部：收货人+电话+默认标识 */
.address-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.receiver-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.receiver-name {
    font-size: 16px;
    color: #1d2129;
    font-weight: 500;
}

.receiver-phone {
    font-size: 14px;
    /* transform: translateY(5px); */
    color: #86909c;
}

.default-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #409eff;
    background-color: #e6f4ff;
    padding: 4px 14px;
    border-radius: 5px;
}

/* 地址内容 */
.address-content {
    margin-bottom: 12px;
}

.address-area {
    font-size: 14px;
    color: #1d2129;
    margin: 0 0 4px 0;
}

.address-detail {
    font-size: 14px;
    color: #86909c;
    margin: 0;
    line-height: 1.4;
}

/* 地址操作按钮组 */
.address-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}

.address-actions-item {
    flex: 1;
    margin-right: 8px;
}

.address-actions-item:last-child {
    margin-right: 0;
}

.set-default-btn {
    color: #409eff !important;
    border-color: #c6e2ff !important;
    padding: 4px 12px !important;
    font-size: 13px !important;
}



.edit-btn {
    color: #409eff !important;
    border-color: #c6e2ff !important;
    padding: 4px 12px !important;
    font-size: 13px !important;
}

.delete-btn {
    color: #f53f3f !important;
    border-color: #ffccc7 !important;
    padding: 4px 12px !important;
    font-size: 13px !important;
}

/* 3. 空地址状态 */
.empty-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 160px);
    color: #86909c;
}

.empty-icon {
    color: #c9cdcf;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    margin-bottom: 24px;
}

.add-first-btn {
    background-color: #409eff !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
}

/* 4. 底部添加地址按钮 */
.add-address-footer {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.add-address-btn {
    width: 100%;
    background-color: #409eff !important;
    color: #fff !important;
    padding: 10px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}